﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SYH178Model;
using SYHParamter;
using UtilityLibrary.Paramater;


namespace SYHParamters
{
    public class InterfaceDataByCompany
    {
        //为公司的URL
        public static Company_Info GetCompanyNameById(int id)
        {
            ComapnyNameByIdRequest request = new ComapnyNameByIdRequest();
            request.SetProject(Config.ProjectNumber, Config.ProjectKey);
            request.Id = id;

            ComapnyNameByIdResponse response = request.GetResponseParamater();
            if (response.List != null && response.List.Count > 0)
            {
                return response.List[0];
            }
            else
            {
                return null;
            }
        }
    }
}
